import java.io.*;
/**
  * Demonstrate the BufferedReader class for wrapping a
  * reader object and providing the readLine () method.
 **/
public class BufferedReaderApp
{
  public static void main (String arg[]) {

    // System.in std input stream already opened by default.
    // Wrap in a new reader stream to obtain 16 bit capability.
    InputStreamReader reader = new InputStreamReader (System.in);

    // Wrap the reader with a buffered reader.
    BufferedReader buf_in = new BufferedReader (reader);

    // Wrap in a new writer stream to obtain 16 bit capability.
    OutputStreamWriter writer = new OutputStreamWriter (System.out);

    // PrintWriter wrapper
    PrintWriter print_writer = new PrintWriter (writer, true);

    String str = "q";
    try {
      // Read a whole line a time. Check the string for
      // the "quit" input to jump from the loop.
      do {
        // Read text from keyboard
        str = buf_in.readLine ();

        // Echo the text back to console.
        print_writer.println ("echo " + str);

      } while (!str.toLowerCase ().equals ("q")  );
    }
    catch  (IOException e) {
        System.out.println ("IO exception = " + e );
    }
  } // main

} // class BufferedReaderApp  


// gcj -Wall -g --main=BufferedReaderApp -o prggg BufferedReaderApp.java